<!--@if($product->document->getCommentCount())-->
<div class="feedbackList" id="reply">
	<div class="replyList">
        <!--@foreach($product->comment_list as $key => $comment)-->
            <div class="indent" <!--@if($comment->get('depth'))--> style="margin-left:{($comment->get('depth'))*15}px" <!--@end-->>
                <div class="item <!--@if($comment->get('depth'))-->itemReply<!--@end-->" id="comment_{$comment->comment_srl}">
                    <div class="itemContent">
                        <!--@if(!$comment->isAccessible())-->
                        <form action="./" method="get" onsubmit="return procFilter(this, input_password)" class="secretMessage">
                            <input type="hidden" name="mid" value="{$mid}" />
                            <input type="hidden" name="page" value="{$page}" />
                            <input type="hidden" name="document_srl" value="{$comment->get('document_srl')}" />
                            <input type="hidden" name="comment_srl" value="{$comment->get('comment_srl')}" />
                            <p>&quot;{$lang->msg_is_secret}&quot;</p>
                            <dl>
                                <dt><label for="cpw">{$lang->password}</label> :</dt>
                                <dd><input type="password" id="cpw" name="password" class="inputText" /><span class="buttonOfficial"><input type="submit" value="{$lang->cmd_input}" /></span></dd>
                            </dl>
                        </form>
                        <!--@else-->
                            {$comment->getContent(false)}

                            <!--@if($comment->hasUploadedFIles())-->
                            <dl class="attachedFile">
                                <dt><img src="./img/common/iconFiles.gif" width="27" height="11" alt="{$lang->uploaded_file}" /> <button type="button" class="fileToggle" onclick="jQuery(this).parents('dl.attachedFile').toggleClass('open');return false;">{$lang->uploaded_file} ({$comment->get('uploaded_count')})</button></dt>
                                <dd>
                                    <ul class="files">
                                        {@ $_uploaded_files = $comment->getUploadedFiles() }
                                        <!--@foreach($_uploaded_files as $key => $file)-->
                                        <li><a href="{getUrl('')}{$file->download_url}">{$file->source_filename} <span class="bubble">[File Size:{FileHandler::filesize($file->file_size)}/Download{number_format($file->download_count)}]</span></a></li>
                                        <!--@end-->
                                    </ul>
                                </dd>
                            </dl>
                            <!--@end-->
                        <!--@end-->
                    </div>
                    <div class="actions">
                        <span class="links">
                            <!--@if($is_logged)-->
                                <a href="#popup_menu_area" class="comment_{$comment->comment_srl}">{$lang->cmd_comment_do}</a>
                            <!--@end-->
                            <a href="#" onclick="return replyCommentForm({$comment->comment_srl})">{$lang->cmd_reply}</a>
                            <!--@if($comment->isGranted() && $comment->get('member_srl'))-->
                                <a href="#" onclick="return modifyCommentForm({$comment->comment_srl})">{$lang->cmd_modify}</a>
                            <!--@end-->
                            <!--@if($comment->isGranted())-->
                                <a href="#" onclick="if(confirm('{$lang->confirm_delete}')) doDeleteComment('{$comment->comment_srl}'); return false;">{$lang->cmd_delete}</a>
                            <!--@end-->
                        </span><span class="meta">
                            <div class="date" title="{date('Y/m/d @ H:i', $commentDate)}">{$lang->commented} {$comment->variables['relativeDate']}</div>
                            <span class="avatar">
                            {@ $avatar = $comment->getProfileImage() }
                            <!--@if($avatar)-->
                                <img src="{$avatar}" alt="{$comment->getNickName()}" />
                            <!--@else-->
                                <img src="img/no_avatar.png">
                            <!--@end-->
                            </span><span class="author">
                                <div><a href="#" onclick="return false;" class="author member_{$comment->get('member_srl')}">{$comment->getNickName()}</a></div>
                            </span>
                        </span>
                    </div>

                    <!--@if($comment->get('voted_count')!=0 || $comment->get('blamed_count') != 0)-->
                    <dl class="vote">
                        <dt class="love"><span>{$lang->cmd_vote}</span></dt>
                        <dd>{$comment->get('voted_count')?$comment->get('voted_count'):0}</dd>
                        <dt class="hate"><span>{$lang->cmd_vote_down}</span></dt>
                        <dd>{$comment->get('blamed_count')?$comment->get('blamed_count'):0}</dd>
                    </dl>
                    <!--@end-->
                </div>
            </div>
        <!--@end-->
    </div>
    <!--@if($product->document->comment_page_navigation)-->
        <div class="pagination">
            <a href="{getUrl('cpage',1)}#comment" class="prevEnd">{$lang->first_page}</a>
            <!--@while($page_no = $document->comment_page_navigation->getNextPage())-->
                <!--@if($cpage == $page_no)-->
                    <strong>{$page_no}</strong>
                <!--@else-->
                    <a href="{getUrl('cpage',$page_no)}#comment">{$page_no}</a>
                <!--@end-->
            <!--@end-->
            <a href="{getUrl('cpage',$document->comment_page_navigation->last_page)}#comment" class="nextEnd">{$lang->last_page}</a>
        </div>
    <!--@end-->
</div>
<!--@end-->
